package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 引入管台账对象 bus_pipe
 * 
 * @author ling
 * @date 2024-07-18
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusPipe extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 删除标识 */
    private String delFlag;

    /** 创建者ID */
    private Long createUser;

    /** 更新者ID */
    private Long updateUser;

    /** 引入管编号 */
    @Excel(name = "引入管编号")
    private String pipeId;

    /** 引入管数量 */
    @Excel(name = "引入管数量")
    private Long pipeNumber;

    /** 架空管长度（m） */
    @Excel(name = "架空管长度", readConverterExp = "m=")
    private Long pipeLength;

    /** 所属街道 */
    @Excel(name = "所属街道")
    private Long streetId;

    /** 所属小区 */
    @Excel(name = "所属小区")
    private Long neighborId;

    /** 详细地址 */
    private String address;

    /** 经度 */
    private String longitude;

    /** 纬度 */
    private String latitude;

    /** 班组 */
    @Excel(name = "班组")
    private Long teamId;

    /** 负责人员 */
    @Excel(name = "负责人员")
    private Long personId;

    /** 运行日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "运行日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date runDate;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("delFlag", getDelFlag())
            .append("createUser", getCreateUser())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("pipeId", getPipeId())
            .append("pipeNumber", getPipeNumber())
            .append("pipeLength", getPipeLength())
            .append("streetId", getStreetId())
            .append("neighborId", getNeighborId())
            .append("address", getAddress())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("teamId", getTeamId())
            .append("personId", getPersonId())
            .append("runDate", getRunDate())
            .append("remark", getRemark())
            .toString();
    }
}
